@extends('Admin.layout.layout')
@section('title','用户修改')
@section('home','用户管理')
@section('weizhi','用户修改')
@section('con')

@if(session('error'))
      <div class="alert alert-block alert-danger fade in">
         {{session('error')}}
      </div>
  @endif

  @if (count($errors) > 0)
      <div class="alert alert-block alert-danger fade in">
          <ul>
              @foreach ($errors->all() as $error)
                  <li>{{ $error }}</li>
              @endforeach
          </ul>
      </div>
  @endif

<div class="panel-body">
  <div class="form">
      <form class="form-validate form-horizontal " id="register_form" method="post" action="{{url('/admin/user/update')}}" novalidate="novalidate">
          <div class="form-group ">
              <label for="username" class="control-label col-lg-2"><font><font>用户名</font></font><span class="required"><font><font>*</font></font></span></label>
              <div class="col-lg-10" style="width:300px">
                 <input type="hidden" name='uid' value="{{$users -> id}}">
                  <input class="form-control " id="username" name="username" type="text" value="{{$users -> username}}">
              </div>
          </div>
          <div class="form-group ">
              <label for="password" class="control-label col-lg-2"><font><font>密码</font></font><span class="required"><font><font>*</font></font></span></label>
              <div class="col-lg-10" style="width:300px">
                  <input class="form-control " id="password" name="password" type="password" value="{{$users -> password}}">
              </div>
          </div>
          <!-- <div class="form-group ">
              <label for="confirm_password" class="control-label col-lg-2"><font><font>确认密码</font></font><span class="required"><font><font>*</font></font></span></label>
              <div class="col-lg-10" style="width:300px">
                  <input class="form-control " id="confirm_password" name="repassword" type="password">
              </div>
          </div> -->
		  <!-- <div class="form-group "> -->
          <label for="password" class="control-label col-lg-2"><font><font>等级</font></font><span class="required"><font><font>*</font></font></span></label>
          <select class="form-control m-bot15" style="width: 280px;" name="grade">
              <option value="0"><font><font>普通会员</font></font></option>
              <option value="1"><font><font>会员</font></font></option>
              <option value="2"><font><font>管理员</font></font></option>
          </select>
          <!-- </div> -->
          {{csrf_field()}}
          <div class="form-group">
              <div class="col-lg-offset-2 col-lg-10">
                  <button class="btn btn-primary" type="submit"><font><font>提交</font></font></button>
                  <button class="btn btn-default" type="button"><font><font>取消</font></font></button>
              </div>
          </div>
      </form>
  </div>
</div>





@endsection